import { createContext, type Dispatch, type SetStateAction } from 'react';
import type { ISectionClient, ISectionGroup, ITag } from '@/interfaces';
import type { TMetadata } from '@/types';

export const HomeH5PageContext = createContext<{
  metadata?: TMetadata | null;
  currentSectionGroupItem?: ISectionGroup | null;
  setCurrentSectionGroupItem?: Dispatch<
    SetStateAction<ISectionGroup | undefined>
  > | null;
  currentSectionItem?: ISectionClient | null;
  setCurrentSectionItem?: Dispatch<
    SetStateAction<ISectionClient | undefined>
  > | null;
  currentTagItem?: ITag | null;
  setCurrentTagItem?: Dispatch<SetStateAction<ITag | undefined>> | null;
}>({});
